//
//  SXTopicRootViewController.m
//  ShiXun
//
//  Created by lanou on 15/10/26.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXTopicRootViewController.h"
#import "SXTopicMainLeftViewController.h"
#import "SXTopicMainRightViewController.h"

@interface SXTopicRootViewController ()

@property (nonatomic, strong) SXTopicMainLeftViewController *leftVC;
@property (nonatomic, strong) SXTopicMainRightViewController *rightVC;

@end

@implementation SXTopicRootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    _leftVC = [[SXTopicMainLeftViewController alloc] init];
    [self.view addSubview:_leftVC.view];
    
    
    _rightVC = [[SXTopicMainRightViewController alloc] init];
    _rightVC.view.frame = CGRectMake(kScreenWidth / 5, 64, kScreenWidth * 4/5, kScreenHeight - 113);
    [self.view addSubview:_rightVC.view];
    
    _rightVC.rootVC = self.rootRightVC;
    _leftVC.rightVC = _rightVC;
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
